package com.example.myapplication.model.db.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import com.example.myapplication.model.entity.Forum;
import com.example.myapplication.model.entity.ForumPics;
import com.example.myapplication.model.entity.NewsComment;
import com.example.myapplication.model.entity.User;

import java.util.List;

@Dao
public interface NewsCommentDao {
    //插入新闻
    @Insert
    public void insertForum(NewsComment... newsComments);
    //查询所有新闻
    @Query("SELECT * FROM NewsComment")
    public List<NewsComment> findByAllNewsComments();
    //更新新闻
    @Update
    public void updateNewsComments(NewsComment... newsComments);
    //删除新闻
    @Delete
    public void deleteNewsComment(NewsComment... newsComments);
}
